import request from '@/utils/request'

// 根据id查询公司
export const reqGetCompany = id => request.get(`/company/${id}`)

// 组织架构
export const reqGetZuzhi = () => request.get('/company/department')

// 根据id删除部门
export const reqDelBumen = id => request.delete(`/company/department/${id}`)

// 获取员工
export const reqGetSimple = () => request.get('/sys/user/simple')

// 添加部门
export const reqAddBumen = data => request.post('/company/department', data)

// 获取部门详情
export const reqGetBumen = id => request.get(`/company/department/${id}`)

// 编辑部门
export const reqUpdateBumen = data => request.put(`/company/department/${data.id}`, data)
